package experiment4.task1;

import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
 * @author 冯永龙
 * @date 2021/4/5 9:39
 */

@Label("Person")
public class Person {
    @Label("姓名 ")
    private String name;
    @Label("性别 ")
    private String sex;
    @Label("年龄 ")
    private Integer age;
    @Label("身份证号 ")
    private String idNo;
    @Label("是否已婚 ")
    private Boolean isMarried;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public Boolean getIsMarried() {
        return isMarried;
    }

    public void setIsMarried(Boolean married) {
        isMarried = married;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", idNo='" + idNo + '\'' +
                ", isMarried=" + isMarried +
                '}';
    }
}
